import 'package:flutter/material.dart';
import 'package:meal/constant/sizes.dart';
import 'package:meal/utils/colors.dart';
import 'package:meal/utils/styles.dart';
import 'package:meal/utils/tools.dart';

///
///
///
class FullExplain extends StatefulWidget {
  const FullExplain({Key? key}) : super(key: key);

  @override
  State<FullExplain> createState() => _FullExplainState();
}

class _FullExplainState extends State<FullExplain> {
  TextStyle get style {
    return StylesUtils.customTextStyle(color: ColorsUtils.color333, lineHeight: 1.5);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: ToolsUtils.getDefaultBrnAppBar('满赠活动说明'),
      body: SingleChildScrollView(
        padding: const EdgeInsets.all(Sizes.default20),
        child: Column(
          children: [
            Container(
              alignment: Alignment.centerLeft,
              margin: const EdgeInsets.only(bottom: Sizes.default10),
              child: Text(
                '1、订单含特价商品时顾客无法参与此活动',
                style: style,
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              margin: const EdgeInsets.only(bottom: Sizes.default10),
              child: Text(
                '2、满赠的门槛金额不包括配送费，而打包费将计入赠送条件中',
                style: style,
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              margin: const EdgeInsets.only(bottom: Sizes.default10),
              child: Text(
                '3、仅支持在线支付，且每人每天只可享受2单满赠',
                style: style,
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              margin: const EdgeInsets.only(bottom: Sizes.default10),
              child: Text(
                '4、活动设置后无法修改',
                style: style,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
